package edu.whu.demo.Aspect;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@Component
public class CountObject {
    private int calledCount;
    private int exceptionCount;
    private long minTime, maxTime;
    private double avgTime;
    public void addCallCount(){
        calledCount++;
    }
    public void addExceptionCount(){
        exceptionCount++;
    }

}
